export const tableOption = {
  border: true, //是否带有纵向边框
  selection: true, //行最前面的选择框
  menuAlign: "center",
  searchLabelWidth: 110, //搜索按钮是否单独成行，并控制搜索按钮的长度
  searchIndex: 4, //筛选收缩
  searchIcon: true,
  align: "center", //对齐方式
  emptyText: '自定义暂无数据提示语',
  dialogDirection: 'rtl',
  dialogType: 'drawer',
  column: [
    {
      label: "序号",
      prop: "id",
      hide: true,
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
    },
    {
      label: "商场的名称",
      prop: "name",
      type: "input",
      fixed: true,
      display: false
    },
    {
      label: "LOGO图片地址",
      prop: "logo",
      type: "upload",
      listType: 'picture-img',
      dataType: 'string',
      tip: '只能上传jpg/png文件,且不超过500kb',
      action: '/admin/sys-file/upload',
      propsHttp: {
        res: 'data'
      },
      display: false
    },
    {
      label: "商场联系电话",
      prop: "contacterPhone",
      type: "input",
      span: 12,
      display: false
    },
    {
      label: "商场介绍",
      prop: "content",
      type: "input",
      span: 12,
      display: false
    },
    {
      label: "所属省",
      prop: "province",
      type: 'select',
      cascader: ['city'],
      dicUrl: `/admin/region/getProvince`,
      props: {
        label: 'name',
        value: 'regionCode'
      },
      display: false
    },
    {
      label: "所属市",
      prop: "city",
      type: 'select',
      cascader: ['county'],
      dicUrl: `/admin/region/getCity/{{key}}`,
      props: {
        label: 'name',
        value: 'regionCode'
      },
      display: false
    },
    {
      label: "所属县",
      prop: "county",
      type: 'select',
      dicUrl: `/admin/region/getArea/{{key}}`,
      props: {
        label: 'name',
        value: 'regionCode'
      },
      display: false
    },
    {
      label: "商场地址",
      prop: "address",
      type: "input",
      span: 12,
      display: false
    },
    {
      label: "启用状态",
      prop: "status",
      type: 'switch',
      dicData: [{
        label: '禁用',
        value: 'N'
      }, {
        label: '启用',
        value: 'Y'
      }],
      slot: true,
      width: 140,
      display: false
    },
    {
      label: "微信公众号UID",
      prop: "wxUid",
      type: "input",
      span: 12,
      display: false
    },
    {
      label: "MIS组织机构ID",
      prop: "organizationCode",
      type: "select",
      props: {
        label: 'storeName',
        value: 'storeNo'
      },
      dicUrl: `/admin/mall/store/list`,
      formatter: (val, value, label) => {
        return `${label}(${value})`
      },
      span: 12,
      display: false
    },
    {
      label: "商场背景图地址",
      prop: "backgroundImage",
      type: "upload",
      listType: 'picture-img',
      dataType: 'string',
      tip: '只能上传jpg/png文件,且不超过500kb',
      action: '/admin/sys-file/upload',
      propsHttp: {
        res: 'data'
      },
      display: false
    },
    {
      label: "个人中心中的客服中心说明",
      prop: "serviceCenter",
      type: "input",
      span: 12,
      display: false
    },
    {
      label: "礼品卡页面主题图片地址",
      prop: "giftCardImage",
      type: "upload",
      listType: 'picture-img',
      dataType: 'string',
      tip: '只能上传jpg/png文件,且不超过500kb',
      action: '/admin/sys-file/upload',
      propsHttp: {
        res: 'data'
      },
      display: false
    },
    {
      label: "商场停车单位部门",
      prop: "parkingDept",
      type: "input",
      span: 12,
      display: false
    },
    {
      label: "商场停车单位电话",
      prop: "parkingPhone",
      type: "input",
      span: 12,
      display: false
    },
    {
      label: "LOGO图片宽度",
      prop: "logoWidth",
      type: "input",
      span: 12,
      display: false
    },
    {
      label: "LOGO图片高度",
      prop: "logoHeight",
      type: "input",
      span: 12,
      display: false
    },
    {
      label: "LOGO所在列高度",
      prop: "logoColumnHeight",
      type: "input",
      span: 12,
      display: false
    },
    {
      label: "会员权益图片地址",
      prop: "vipRightsImageUrl",
      type: "upload",
      listType: 'picture-img',
      dataType: 'string',
      tip: '只能上传jpg/png文件,且不超过500kb',
      action: '/admin/sys-file/upload',
      propsHttp: {
        res: 'data'
      },
      display: false
    }
  ],
  group: [
    {
      label: '基础信息',
      icon: 'el-icon-edit-outline',
      column: [
        {
          label: "序号",
          prop: "id",
          type: "input",
          fixed: true,
          disabled: true,
        },
        {
          label: "启用状态",
          prop: "status",
          type: 'switch',
          dicData: [{
            label: '禁用',
            value: 'N'
          }, {
            label: '启用',
            value: 'Y'
          }],
          slot: true,
          width: 140,
        },
        {
          label: "商场的名称",
          prop: "name",
          type: "input",
          fixed: true,
        },
        {
          label: "商场联系电话",
          prop: "contacterPhone",
          type: "input",
          span: 12,
        },
        {
          label: "商场介绍",
          prop: "content",
          type: "input",
          span: 12,
        }
      ]
    },
    {
      label: '位置信息',
      icon: 'el-icon-edit-outline',
      column: [
        {
          label: "所属省",
          prop: "province",
          type: 'select',
          cascader: ['city'],
          cascaderIndex: 0,
          dicUrl: `/admin/region/getProvince`,
          props: {
            label: 'name',
            value: 'regionCode'
          },
        },
        {
          label: "所属市",
          prop: "city",
          type: 'select',
          cascader: ['county'],
          cascaderIndex: 0,
          dicUrl: `/admin/region/getCity/{{key}}`,
          props: {
            label: 'name',
            value: 'regionCode'
          },
        },
        {
          label: "所属县",
          prop: "county",
          type: 'select',
          dicUrl: `/admin/region/getArea/{{key}}`,
          props: {
            label: 'name',
            value: 'regionCode'
          },
        },
        {
          label: "商场地址",
          prop: "address",
          type: "input",
          span: 12,
        }
      ]
    },
    {
      label: '其他信息',
      icon: 'el-icon-edit-outline',
      column: [
        {
          label: "微信公众号UID",
          prop: "wxUid",
          type: "input",
          span: 12,
        },
        {
          label: "MIS组织机构ID",
          prop: "organizationCode",
          type: "select",
          props: {
            label: 'storeName',
            value: 'storeNo'
          },
          formatter: (val, value, label) => {
            return `${label}(${value})`
          },
          dicUrl: `/admin/mall/store/list`,
          span: 12,
        },
        {
          label: "个人中心中的客服中心说明",
          prop: "serviceCenter",
          type: "input",
          span: 12,
        },
        {
          label: "商场停车单位部门",
          prop: "parkingDept",
          type: "input",
          span: 12,
        },
        {
          label: "商场停车单位电话",
          prop: "parkingPhone",
          type: "input",
          span: 12,
        }
      ]
    },
    {
      label: '图片信息',
      icon: 'el-icon-edit-outline',
      column: [
        {
          label: "LOGO图片地址",
          prop: "logo",
          type: "upload",
          listType: 'picture-img',
          dataType: 'string',
          tip: '只能上传jpg/png文件,且不超过500kb',
          action: '/admin/sys-file/upload',
          propsHttp: {
            res: 'data'
          },
        },
        {
          label: "LOGO图片宽度",
          prop: "logoWidth",
          type: "input",
          span: 12,
        },
        {
          label: "LOGO图片高度",
          prop: "logoHeight",
          type: "input",
          span: 12,
        },
        {
          label: "LOGO所在列高度",
          prop: "logoColumnHeight",
          type: "input",
          span: 12,
        },
        {
          label: "商场背景图地址",
          prop: "backgroundImage",
          type: "upload",
          listType: 'picture-img',
          dataType: 'string',
          tip: '只能上传jpg/png文件,且不超过500kb',
          action: '/admin/sys-file/upload',
          propsHttp: {
            res: 'data'
          },
        },
        {
          label: "礼品卡页面主题图片地址",
          prop: "giftCardImage",
          type: "upload",
          listType: 'picture-img',
          dataType: 'string',
          tip: '只能上传jpg/png文件,且不超过500kb',
          action: '/admin/sys-file/upload',
          propsHttp: {
            res: 'data'
          },
        },
        {
          label: "会员权益图片地址",
          prop: "vipRightsImageUrl",
          type: "upload",
          listType: 'picture-img',
          dataType: 'string',
          tip: '只能上传jpg/png文件,且不超过500kb',
          action: '/admin/sys-file/upload',
          propsHttp: {
            res: 'data'
          },
        }
      ]
    }
  ]
}
